package sfeir.gwt.ergosoom.client;

import sfeir.gwt.ergosoom.client.model.Profile;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface ClientApiAsync {
    void getProfile(String email, AsyncCallback<Profile> profile);
    void createProfile(Profile profile, AsyncCallback<Long> id);
    void checkAlias(String alias, AsyncCallback<Boolean> check);
    void login(String login, String password, Boolean encodePass, AsyncCallback<Profile> profile);
    void signup(Profile profile, AsyncCallback<Profile> ret);
}
